using GrpcClient.IOC;
using static GrpcService.Order;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddTransient<GrpcRequestTest>();
builder.Services.AddGrpcClient<OrderClient>(o =>
{
    o.Address = new Uri("https://localhost:7097");
}).ConfigureChannel(grpcOptions => { });

var app = builder.Build();
var grpcRequestTest = app.Services.GetRequiredService<GrpcRequestTest>();
grpcRequestTest.CreateOrder();
app.Run();
